package com.blb.zy_community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.zy_community.entity.SysLogininfor;
import com.blb.zy_community.mapper.SysLogininforMapper;
import com.blb.zy_community.service.ISysLogininforService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统访问记录 服务实现类
 * </p>
 *
 * @author 二组
 * @since 2023-06-18
 */
@Service
public class SysLogininforServiceImpl extends ServiceImpl<SysLogininforMapper, SysLogininfor> implements ISysLogininforService {
    @Autowired
    private SysLogininforMapper sysLogininforMapper;

    @Override
    public Page<SysLogininfor> getSysLogininforPage(Page<Object> objectPage, String ipaddr, String username, String status, String loginTimeRangeStart, String loginTimeRangeEnd) {
        Page<SysLogininfor> sysLogininforPage = sysLogininforMapper.selectSysLogininforPage(objectPage,ipaddr,username,status,loginTimeRangeStart,loginTimeRangeEnd);

        return sysLogininforPage;
    }
}
